//
//  ClubPrivacyViewController.swift
//  77Club
//
//  Created by Apple on 2024/10/22.
//

import UIKit

class ClubPrivacyViewController: ClubBaseViewController {

    private let backButton = c_make_ex(UIButton.self)
        .image("Common_blackBack").end()
    private let titleLabel = c_make_ex(UILabel.self)
        .text("隐私设置").color(.black).font(16.font_semiBold)
        .alignment(.center).end()
    private let blackButton = c_make_ex(UIButton.self)
        .bgColor(.white).corner(8).end()
    private let blackLabel = c_make_ex(UILabel.self)
        .text("黑名单用户").color("#2E3033").font(15.font_medium).end()
    private let rightImageV = c_make_ex(UIImageView.self)
        .mode(.scaleAspectFill).image("Mine_settings_next").end()
    
    override func viewDidLoad() {
        super.viewDidLoad()
 
        view.subviews{
            backButton
            titleLabel
            blackButton.subviews{
                blackLabel
                rightImageV
            }
        }
        
        backButton.leading(0).top(.statusHeight).width(56).height(44)
        titleLabel.centerHorizontally()
        titleLabel.CenterY == backButton.CenterY
        blackButton.leading(12).trailing(12).top(.navi_height + 12).height(64)
        blackLabel.leading(12).centerVertically()
        rightImageV.trailing(12).size(20).centerVertically()
        
        backButton.addTarget(self, action: #selector(clickBackButton), for: .touchUpInside)
        blackButton.addTarget(self, action: #selector(clickBlackButton), for: .touchUpInside)
    }
    

    @objc private func clickBlackButton(){
        
        self.navigationController?.pushViewController(ClubBlackListViewController(), animated: true)
    }

}
